<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2018/11/12
 * Time: 10:13
 */

namespace Activity\Model;

use Common\Model\CommonModel;

class ActivityModel extends CommonModel {
    protected $name     = 'activity';
    protected $pk       = 'id';

    // 活动形式
    const ACTIVITY_FORM_ONLINE_DISCUSS          = 1;    // 线上圆桌
    const ACTIVITY_FORM_OFFLINE_DISCUSS         = 2;    // 线下活动
    const ACTIVITY_FORM_SHARE_LESSON            = 3;    // 分享课

    // 页面模板
    const ACTIVITY_PAGE_TEMPLATE_TEN_CITY               = 1; // 十城联动模板
    const ACTIVITY_PAGE_TEMPLATE_OFFLINE_DISCUSS        = 2; // 社区养老线下圆桌讨论

    public $activity_form_array                 = array(
        self::ACTIVITY_FORM_ONLINE_DISCUSS              => '线上圆桌',
        self::ACTIVITY_FORM_OFFLINE_DISCUSS             => '线下活动',
        self::ACTIVITY_FORM_SHARE_LESSON                => '分享课',
    );

    public $activity_template_array             = array(
        self::ACTIVITY_PAGE_TEMPLATE_TEN_CITY           => '十城联动模板',
        self::ACTIVITY_PAGE_TEMPLATE_OFFLINE_DISCUSS    => '社区养老线下圆桌讨论',
    );
}